// bower:scss
// endbower
@import "_mixin.scss";
@import "_addon.scss";
@import "background.scss";
//init page
body {
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background:rgb(134, 192, 60);
}
ul,ol {
  list-style: none;
}

//lt IE 8 show
.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

//commen styling
[class^="icon-"], [class*=" icon-"] {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  vertical-align: text-top;
  background-image: url("/images/glyphicons-halflings.png");
  background-position: 14px 14px;
  background-repeat: no-repeat;
}

.topbar-user-dropdown [class^='icon-'] {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  background: url("/images/topbar.png") no-repeat transparent;
}

.clearfix {*zoom:1}
.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}
.clearfix:after{clear:both}

.hide, .hidden {
  display: none;
}

.icons {
  float: left;
  width: 100%;
  .restaurant-icons {
    margin-top: 4px;
    display: block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    float: left;
    background: url(/images/service-icons.png8.png) transparent 0 0 no-repeat;
    &.recoup {background-position: 0 -100px;}
    &.invoice {background-position: 0 -120px;}
    &.deliver-fee {background-position: 0 -140px;}
    &.online-payment {background-position: 0 -160px;}
  }
}

input[type="radio"]:focus, input[type="checkbox"]:focus, input[type="radio"]:checked, input[type="checkbox"]:checked {
  outline: 0;
}
input[type="image"], input[type="checkbox"], input[type="radio"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 3px 0;
  line-height: normal;
  cursor: pointer;
  border-radius: 0;
  border: 0 \9;
}

//Topbar styling
.topbar-search .tsearch-form, .topbar-search .tsearch-input {
  margin: 0;
  outline: 0;
}
.topbar-search .icon-tsearch, .topbar-search .icon-tloading, .topbar-search .icon-tclear {
  float: right;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.tsearch-autocomplete .tsearch-item:hover, .tsearch-autocomplete .tsearch-item.selected {
  background: #f3f3f3;
}
.topbar-widget .icon-tcart, .topbar-widget .icon-tmsg {
  display: block;
  width: 20px;
  height: 20px;
}
.eleme_dropdown>.e_dropdown {
  position: absolute;
  display: none;
  z-index: 100;
}
#topbar {
  width: 100%;
  height: 40px;
  display: block; 
  z-index: 100; 
  overflow: visible; 
  position: fixed;
  background-color: #222;
  background-image: -webkit-linear-gradient(270deg,#262626,#1a1a1a);
  background-image: linear-gradient(180deg,#262626,#1a1a1a);
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  a {text-decoration: none;pointer:cursor;}
  .container {
    #logo {
      float: left;
      margin-right: 10px;
      display: block;
      width: 90px;
      height: 40px;
      overflow: hidden;
      .default-logo {
        background: url("/images/topbar.png") no-repeat transparent 0 0;
        display: block;
        width: 90px;
        height: 40px;
      }
    }
    .m-apps {
      float: left;
      display: block;
      margin: 8px 15px 0 0;
      width: 82px;
      height: 24px;
      border-radius: 3px;
      background: #2d2d2d;
      font-size: 12px;
      text-align: center;
      line-height: 24px;
      color: #ababab;
      .icon-mobile {
        margin-right: 6px;
        width: 9px;
        height: 14px;
        background: url("/images/topbar.png") no-repeat transparent 0 -40px;
      }
    }
    .topbar-search {
      position: relative;
      float: left;
      margin-top: 7px;
      .tsearch-form {
        width: 200px;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        height: 26px;
        border: 1px solid #141414;
        border-radius: 3px;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3),0 1px 0 #2a2a2a;
        background: #4e4e4e;
        padding: 3px 6px;
        -webkit-transition: all .2s linear 0s;
        transition: all .2s linear 0s;
        &.focus {
          background-color: #fff;
        }
        .icon-tsearch {
          float: left;
          margin-right: 5px;
          background: url("/images/topbar.png") no-repeat transparent 0 -60px;
        }
        .tsearch-input {
          float: left;
          width: 143px;
          height: 18px;
          font-size: 12px;
          color: #222;
          padding: 0;
          background: 0;
          border: 0;
          border-radius: 0;
          outline: 0;
          transition: none;
          box-shadow: none;
          &:active, &:focus {
            border: 0;
            box-shadow: none;
          }
        }
        .icon-tloading {
          background: url("/images/topbar-search-loading.gif") no-repeat center;
        }
        .icon-tclear {
          cursor: pointer;
          background: url("/images/topbar.png") no-repeat transparent -40px -60px;
        }
      }
      //searching componment
      .tsearch-autocomplete {
        position: absolute;
        z-index: 20;
        top: 30px;
        width: 365px;
        background: #ececec;
        border-radius: 2px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        overflow: hidden;
        .tsearch-no-result {
          padding: 15px 20px;
        }
        .tsearch-cate {
          float: left;
          -moz-box-sizing: border-box;
          box-sizing: border-box;
          width: 55px;
          padding: 20px 0 20px 20px;
          color: #555;
          font-size: 12px;
        }
        .tsearch-list {
          float: left;
          -moz-box-sizing: border-box;
          box-sizing: border-box;
          width: 310px;
          margin: 0;
          padding: 10px 0;
          background: white;
          border-left: 1px solid #d7d7d7;
          .tsearch-item {
            display: block;
            padding: 5px 20px 5px 15px;
            .tsd-name {
              color: #222;
              font-size: 14px;
            }
            .tsd-rst {
              color: #777;
              font-size: 12px;
            }
            .tsd-price {
              float: right;
              color: #777;
              .symbol-rmb {
                font-style: normal;
                font-family: arial;
              }
            }
          }
          .ts-dish {
            padding-top: 10px;
            padding-bottom: 10px;
          }
        }
        .ts-dish-list {
          padding-bottom: 20px;
        }
      }
    }
    .topbar-nav {
      float: right;
      .topbar-site-nav {
        list-style: none;
        position: relative;
        float: left;
        margin: 0 20px 0 0;
        li {
          list-style: none;
          float: left;
        }
        .tnav-link {
          display: block;
          height: 40px;
          padding: 0 10px;
          color: #ccc;
          font-size: 13px;
          line-height: 40px;
          cursor: pointer;
        }
      }
      .topbar-widget {
        float: left;
        font-size: 13px;
        color: #222;
        cursor: pointer;
        .twidget-toggle {
          padding: 10px;
          position: relative;
          display: block;
        }
        .twidget-total {
          position: absolute;
          top: 5px;
          right: 5px;
          padding: 1px;
          min-width: 10px;
          border-radius: 6px;
          background-color: #dd5401;
          color: white;
          font: normal 10px/10px arial,sans-serif;
          text-align: center;
          display: none;
        }
        .icon-tcart {
          background: url("/images/topbar.png") no-repeat transparent 0 -80px;
        }
        .icon-tmsg {
          background: url("/images/topbar.png") no-repeat transparent -20px -80px;
        }
        .twidget-dropdown {
          width: 280px;
          top: 37px;
          right: -13px;
          padding-top: 3px;
          background: white;
          box-shadow: 0 1px 10px rgba(0,0,0,0.5);
          border-radius: 3px;
          &:after {
            content: "";
            position: absolute;
            top: -5px;
            left: auto;
            right: 30px;
            display: inline-block;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #fff;
          }
        }
        .twidget-loading {
          height: 50px;
          padding: 12px 0;
          display: none;
          background: url("/images/gif-eleme-loader.gif") no-repeat center;
        }
        .twidget-empty {
          font-size: 13px;
          padding: 12px 20px;
        }
      }
      .topbar_cart {
        .twidget-dropdown {
          width: 280px;
        }
      }
      .eleme_dropdown {
        position: relative;
        .caret {
          content: "";
          color: #ccc;
          display: inline-block;
          width: 0;
          height: 0;
          margin-left: 5px;
          border-left: 4px solid transparent;
          border-right: 4px solid transparent;
          border-top: 4px solid #666;
          vertical-align: middle;
        }
      }
      .topbar-user-nav {
        float: left;
        margin-left: 10px;
        .tnav-link {
          display: block;
          height: 40px;
          padding: 0 10px;
          color: #ccc;
          font-size: 13px;
          line-height: 40px;
        }
        .tnav-username {
          cursor: pointer;
          font-size: 14px;
        }
        .topbar-user-dropdown {
          top: 37px;
          right: 0;
          width: 100px;
          background: white;
          padding: 5px 0!important;
          box-shadow: 0 1px 10px rgba(0,0,0,0.5);
          border-radius: 3px;
          margin: 0 0 9px 25px;
          &:after {
            content: "";
            position: absolute;
            top: -5px;
            left: auto;
            right: 30px;
            display: inline-block;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #fff;
          }
          li {
            line-height: 18px;
          }
          a {
            display: block;
            padding: 5px 15px;
            color: #222;
            font-size: 12px;
            &:hover {
              background-color: #eee;
            }
          }
          .divider {
            height: 1px;
            width: 100%;
            background-color: #e0e0e0;
          }
          .icon-profile {
            background-position: 0 -100px;
          }
          .icon-fav {
            background-position: -20px -100px;
          }
          .icon-address {
            background-position: -40px -100px;
          }
          .icon-address {
            background-position: -40px -100px;
          }
          .icon-config {
            background-position: -60px -100px;
          }
          .icon-logout {
            background-position: -80px -100px;
          }
        }
      }
    }
  }
}

//container styling
.container {
  width: 950px;
  .breadcrumb {
    color: #0088c8;
    margin: 60px 0 10px;
    position: relative;
    .breadcrumb-switch {
      margin-left: 8px;
      color: #08c;
      text-decoration: none;
    }
  }
  //iamge banner styling
  .promotion-banner {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    .carousel-wrapper {
      margin: 0;
      padding: 0;
      .carousel-block {
        width: 950px;
        height: 80px;
        overflow: hidden;
      }
    }
    .carousel-pager {
      margin: 0;
      position: absolute;
      bottom: 5px;
      right: 5px;
      .pgn {
        display: block;
        float: left;
        width: 15px;
        height: 15px;
        background-color: white;
        background-color: rgba(255,255,255,0.5);
        color: #999;
        font-size: 12px;
        line-height: 15px;
        text-align: center;
        cursor: pointer;
        &.selected {
          background-color: #f60;
          background-color: rgba(255,102,0,0.8);
          color: white;
          font-weight: bold;
        }
        &+li {
          margin-left: 5px;
        }
      }
    }
  }

  .favored-restaurants, .promoted-restaurants, .more-restaurants {
    margin-bottom: 15px;
  }
  .restaurants-row .row-wrapper {
    padding: 0;
    background: #fff;
    border: 1px solid #f5f5f5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    .category-restaurant-header {
      background-color: #fbfbfb;
      background-image: -moz-linear-gradient(top,#fff,#f5f5f5);
      background-image: -ms-linear-gradient(top,#fff,#f5f5f5);
      background-image: -webkit-linear-gradient(top,#fff,#f5f5f5);
      background-image: -o-linear-gradient(top,#fff,#f5f5f5);
      background-image: linear-gradient(top,#fff,#f5f5f5);
      background-repeat: repeat-x;
      margin-bottom: 0;
      font-size: 14px;
      height: 32px;
      line-height: 32px;
      border-bottom: 1px solid #ccc;
      a {
        color: #333;
        line-height: 30px;
      }
      &.with-restaurant-filter {
        overflow: visible;
        height: 40px;
        padding: 0;
      }
      #filter-btn-wrapper {
        line-height: 40px;
        .filter-btn {
          margin-right: 10px;
          cursor: pointer;
          input {
            vertical-align: middle;
            margin: 0;
            padding: 0;
            width: 12px;
            height: 12px;
            margin-right: 2px;
            margin-top: 1px;
          }
          .filter-text {
            vertical-align: middle;
          }
          .caret {
            content: "";
            display: inline-block;
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 4px solid #666;
          }
        }
        .filter-divider {
          float: left;
          margin-top: 6px;
          margin-right: 10px;
          display: block;
          width: 3px;
          height: 32px;
          background: url(/images/divider.gif);
        }
        .with-icon {
          position: relative;
          display: inline-block;
        }
        .icon-hot, .new_icon, .free_icon, .discount_icon {
          position: absolute;
          top: -5px;
          left: 5px;
          height: 17px;
          width: 31px;
        }
        .new_icon {
          background: url("/images/pRst-sprites.png") no-repeat transparent 0 -330px;
        }
        &>span {
          float: left;
        }
        .flavorblock {
          float: left;
          position: relative;
          margin-left: 5px;
          .flavor-dropdown-toggle {
            width: 59px;
            height: 41px;
            background: url(/images/divider.gif) 0 6px no-repeat;
            cursor: pointer;
            .caret {
              content: "";
              display: inline-block;
              width: 0;
              height: 0;
              border-left: 4px solid transparent;
              border-right: 4px solid transparent;
              border-top: 4px solid #666;
            }
            a {
              text-decoration: none;
              vertical-align: middle;
              padding-left: 18px;
              line-height: 40px;
              b {
                margin-left: 3px;
                vertical-align: middle;
              }
            }
            &.open {
              background: #f0f0f0;
              border: 1px solid #d0d0d0;
              margin-top: -2px;
              padding-top: 1px;
              height: 40px;
              width: 59px;
              a {
                padding-left: 17px;
              }
            }
          }
        }
        .flavor-dropdown-menu {
          position: absolute;
          list-style-type: none;
          width: 59px;
          margin-left: 0;
          margin-top: -1px;
          padding: 0;
          background: #f0f0f0;
          border: 1px solid #d0d0d0;
          z-index: 9;
          li {
            width: 59px;
            height: 30px;
            text-align: center;
            &:hover {
              background: #7ab0d4;
            }
            a {
              text-decoration: none;
            }
          }
        }
        .deliver-slider-wrapper {
          float: right;
          #deliver-amount-level {
            width: 58px;
            text-align: center;
          }
          span {
            float: right;
            margin-top: 1px;
            margin-left: 10px;
            margin-right: 10px;
          }
          .slider-wrapper {
            float: right;
            width: 130px;
            height: 20px;
            margin-top: 14px;
            @include jqueryUI;
          }
        }
      }
    }
    #favored-restaurants,#promoted-restaurants {
      padding: 0;
      @include retaurantBlock;
    }
  }
  .restaurant-hover-dlg {
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#969696,direction=145,strength=3)";
    filter: "progid:DXImageTransform.Microsoft.Shadow(color=#969696,direction=145,strength=3)";
    background: lightyellow;
    position: absolute;
    z-index: 99;
    border: 1px solid #c6c6c6;
    width: 360px;
    .wrapper {
      overflow: hidden;
    }
    .callout_tip {
      position: absolute;
      top: 20px;
      left: -5px;
      height: 9px;
      overflow: hidden;
      width: 6px;
      background: url(/images/bg.gif) no-repeat transparent scroll 0 -810px;
      z-index: 1;
    }
    .detail {
      overflow: hidden;
    }
    .restaurant-panel {
      position: relative;
      float: left;
      .restaurant-more-info {
        margin-top: 10px;
        margin-bottom: 10px;
        float: left;
        .divider {
          height: 1px;
          margin: 10px 10px;
          overflow: hidden;
          background-color: #EEE;
        }
        .icons {
          margin-right: 10px;
          list-style: none;
          margin-left: 10px;
          margin-bottom: 0;
          padding-left: 0;
          li {
            line-height: 19px;
            color: #333;
            font-size: 13px;
            margin: 3px 0;
            span.restaurant-icons {
              margin-top: 2px;
            }
          }
        }
        p {
          margin: 5px 10px;
          line-height: 150%;
          word-wrap: break-word;
          word-break: break-all;
        }
        p.ann {
          color: #f93;
        }

      }
    }
    &.left .callout_tip {
      left: 358px;
      background: url(/images/bg.gif) no-repeat transparent scroll 0 -819px;
    }
  }
}

// site-fixed styling
.site-fixed {
  position: fixed;
  right: 10px;
  bottom: 162px;
  width: 48px;
  height: 101px;
  .btn-back-top, .btn-app-qrcode, .btn-more-server, .btn-setup-shop {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    cursor: pointer;
    margin-bottom: 5px;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr=#80000000,endColorstr=#80000000)"; /*Filter for IE8 */    
    border-radius: 2px;
    &:hover {
      background: rgba(0,0,0,0.7);
      -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr=#99000000,endColorstr=#99000000)"; /*Filter for IE8 */    
    }
  }
  .btn-back-top {
    padding: 16px 11px 0;
    cursor: pointer;
    &>.icon-backtop {
      display: block;
      width: 26px;
      height: 14px;
      background: url("/images/global-sprites.png") no-repeat -120px 0;
    }
    &.ui_invisible {
      visibility: hidden;
    }
  }
  .btn-app-qrcode {
    position: relative;
    padding: 15px 15px 0;
    .icon-qrcode {
      background-position: -432px -24px;
    }
    &>.icon-qrcode {
      display: block;
      width: 18px;
      height: 18px;
      background: url("/images/global-sprites.png") no-repeat -150px 0;
    }
    &>.img-qrcode {
      position: absolute;
      top: -44px;
      right: 53px;
      display: none;
      width: 124px;
      max-width: none;
      padding: 5px;
      background: #fff;
      border-radius: 2px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    &:hover>.img-qrcode{
      display: block;
    }
  }
  .btn-more-server {
    position: relative;
    padding: 15px 15px 0;
    position: relative;
    .icon-more-server {
      display: block;
      width: 18px;
      height: 18px;
      background: url("/images/icon-more-server.png") no-repeat;
    }
    .more-server-panel {
      width: 134px;
      height: auto;
      padding: 5px;
      display: none;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 3px;
      position: absolute;
      right: 48px;
      top: -224px;
      ul {
        padding: 0;
        width: 124px;
        margin: 0 auto;
        li {
          float: left;
          margin-bottom: 5px;
          a {
            cursor: pointer;
            display: block;
          }
          img {
            width: 124px;
          }
        }
      }
      &:after {
        content: "";
        position: absolute;
        top: 244px;
        left: auto;
        right: -5px;
        display: inline-block;
        border-top: 5px solid transparent;
        border-left: 5px solid #fff;
        border-bottom: 5px solid transparent;
      }
    }
    &:hover {
      .more-server-panel {
        display: block;
      }
    }
  }
  .btn-setup-shop {
    padding: 10px 5px 0;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    &:hover {
      color: #fff;
      text-decoration: none;
    }
  }
}

//footer styling
.site-footer {
  margin: 30px 0 20px;
  color: #777;
  position: relative;
  font-family: "Helvetica Neue",Arial,"Microsoft Yahei",sans-serif;
  .sfooter-link-list {
    display: block;
    padding: 0;
    margin: 0 0 10px;
    text-align: center;
    .sfooter-link {
      display: inline-block;
      padding: 0 10px;
      line-height: 1em;
      a {
        color: #08c;
        &:hover {
          color: #08c;
          text-decoration: underline;
        }
      }
    }
    .sfooter-link+.sfooter-link {
      border-left: 1px solid #777;
    }
  }
  p {
    text-align: center;
    margin: 0 0 15px;
    font-family: "Helvetica Neue",Arial,"Microsoft Yahei",sans-serif;
  }
  .sfooter-cert {
    display: inline-block;
    margin-left: -2px;
    padding: 0 20px;
    text-align: left;
    .icon-icp {
      background: url("/images/global-sprites.png") no-repeat 0 0;
    }
    .icon-aic {
      background: url("/images/global-sprites.png") no-repeat -40px 0;
    }
    .icon-icp, .icon-aic {
      display: block;
      float: left;
      margin-right: 5px;
      width: 32px;
      height: 32px;
    }
    .sfooter-crt-info {
      float: left;
      font-size: 12px;
      line-height: 14px;
      color: #666;
    }
  }
  .sfooter-cert+.sfooter-cert {
    border-left: 1px solid #bbb;
  }
}
